FROM oa-tvm-server-gpu:v01

ENV LANG C.UTF-8

WORKDIR /project/face-web

RUN ln -s $(which python3) /usr/local/bin/python

COPY . .

RUN cd /project/face-web/model/RetinaFace && make

ENV WORKERS_NUM="2"

ENTRYPOINT cd /project/face-web && uvicorn api_oa_face_fastapi_v3:app --host 0.0.0.0 --port 17104 --workers ${WORKERS_NUM}

